package com.jic.order.api;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.vo.RestResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * name要调用的服务,这里相当于声明http地址, 比如预下单:http://.../feign/pay/prePayOrder
 */
@FeignClient(name = "jic-interaction", path = "/feign/score")
public interface ScoreOrderApi {
    /**
     * 查询用户
     * @param
     * @return
     */
    @PostMapping("/queryUser")
    RestResult<JSONObject> queryUser(@RequestBody JSONObject ret);
    /* 积分支付
     * @param
     * @return
     */
    @PostMapping("/scorePay")
    RestResult<JSONObject> scorePay(@RequestBody JSONObject jsonObject);
    /**
     * 积分支付查询
     * @param
     * @return
     */
    @PostMapping("/scorePayQuery")
    RestResult<JSONObject> scorePayQuery(JSONObject jsonObject);
}
